package com.itcam.controller;

import com.itcam.dao.StudentDao;
import com.itcam.pojo.Student;
import com.itcam.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;

import java.util.List;

@Controller
public class StudentController {

    @Autowired
    private StudentDao studentDao;

    public void findAll() {
        List<Student> studentList = studentDao.queryAll();
        System.out.println("studentList = " + studentList);
    }
}